package org.mozhu.mboot.core.i18n;

import org.springframework.context.ApplicationEvent;

import java.util.Locale;

public class MessageChangeEvent extends ApplicationEvent {
	private static final long serialVersionUID = -2131992883386206006L;
	private String key;
	private String message;
	private Locale locale;

	public MessageChangeEvent(Object source, String key, String message, Locale locale) {
		super(source);
		this.key = key;
		this.message = message;
		this.locale = locale;
	}

	public String getKey() {
		return key;
	}

	public String getMessage() {
		return message;
	}

	public Locale getLocale() {
		return locale;
	}

}
